package com.gruppe1.inu.Notififations;

import com.gruppe1.inu.R;
import com.gruppe1.inu.SelectMediaActivity;
import com.gruppe1.inu.ListAdapters.NotifListAdapter;
import com.gruppe1.inu.R.array;
import com.gruppe1.inu.R.id;
import com.gruppe1.inu.R.layout;

import android.app.Activity;
import android.content.Intent;

import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

public class SickActivity extends Activity {

	private ListView listView;
	
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.notifs_container);
	    
	    String[] list = getResources().getStringArray(R.array.Sick_strings);
	    listView = (ListView) findViewById(R.id.listView);
	    
	    listView.setAdapter(new NotifListAdapter(this, R.layout.notif_list_item, list));
	    
	    listView.setOnItemClickListener(new OnItemClickListener() {
			
			 
			public void onItemClick(AdapterView<?> parent, View v, int pos,
					long id) {
				// TODO send sms
				Intent i = new Intent(SickActivity.this, SelectMediaActivity.class);
				startActivity(i);
			}
		});
	    
	}
	
	
}
